home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / AppleEvents / Simple Descriptors / AEBoolean.h < prev    next >
Text File  |  2000-06-23  |  569b  |  28 lines

  1. // AEBoolean.h
  2.  
  3. #ifndef AEBoolean_h
  4. #define AEBoolean_h
  5.  
  6. #ifndef AESimpleDescriptor_h
  7. #include "AESimpleDescriptor.h"
  8. #endif
  9.  
  10. class AEBoolean: public AESimpleDescriptor< typeBoolean, uint8 >
  11.   {
  12.     private:
  13.         typedef AESimpleDescriptor< typeBoolean, uint8 > Inherited;
  14.     
  15.     public:
  16.         AEBoolean()        {}
  17.         AEBoolean( bool value )
  18.           : AESimpleDescriptor< typeBoolean, uint8 >( value )
  19.           {}
  20.         
  21.         bool Value() const                { return Inherited::Value() != 0; }
  22.         void Set( bool value )            { Inherited::Set( value ); }
  23.         
  24.         void operator=( bool value )    { Set( value ); }
  25.   };
  26.  
  27. #endif
  28.